home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
PASCAL
/
0635.ZIP
/
WNDODEMO.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1987-09-26
|
1KB
|
66 lines
Program WindowDemo(Input,Output);
{ 4/4/87 : This program demonstrates the use of the MiniGen windowing
routines.
}
Const
ScreenCount = 4; { Enter the number of screens you wish to define }
{$I MGPROG.INC} { Combined windowing and data entry routines }
{$I CURSOR.INC} { Cursor(8/15,0); erases it (CGA/MA) }
{ Cursor(6/13,7/10); returns it }
{ Enter any ScrnGen window procedres here }
Var
Int : Integer;
Procedure Pause;
Var
Ch : Char;
Begin
Repeat
Read(kbd,Ch);
Until not KeyPressed;
End; {Pause}
Procedure MainLoop; { Main program logic }
Begin
Window(1,1,80,25);
TextBackground(Blue);
ClrScr;
For Int := 1 to 1999 do
Write('X');
OpenWindow(1);
Write('Window one. ');
Pause;
OpenWindow(2);
Write('Window two. ');
Pause;
OpenWindow(3);
Write('Window three. ');
Pause;
OpenWindow(4);
Write('Window four. ');
Pause;
CloseWindow;
Pause;
CloseWindow;
Pause;
CloseWindow;
Pause;
CloseWindow;
End;
Begin
ClrScr;
MaxLimits;
InitializeScreens;
DefineScreen(1,10, 5,70,22,4,1,$4E);
DefineScreen(2, 1, 1,40,12,1,2,$70);
DefineScreen(3,20,15,55,19,2,3,$50);
DefineScreen(4,50, 9,80,25,3,4,$1D);
MainLoop;
TerminateScreens;
TextBackground(Black);
ClrScr;
End.